package com.kly.user.enums;

/**
 * @author linqu
 */
public enum PushBizCodeEnum {

    M20001("M20001", "mechat会话列表增加记录"),
    M20002("M20002", " mechat更新用户在线状态"),
    M20003("M20003", "remind消息提醒"),
    M20004("M20004", "未读消息提醒/vip/会话等级"),
    M20005("M20005", "用户从会话列表中移除"),
    M20006("M20006", "会话等级"),

    ;
    private final String pushBizCode;

    private final String description;


    PushBizCodeEnum(String pushBizCode, String description) {
        this.pushBizCode = pushBizCode;
        this.description = description;
    }

    public String getPushBizCode() {
        return pushBizCode;
    }

    public String getDescription() {
        return description;
    }

    public static PushBizCodeEnum fromType(String type) {

        for (PushBizCodeEnum appCode : values()) {
            if (appCode.getPushBizCode().equals(type)) {
                return appCode;
            }
        }
        return null;
    }
}
